<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'deviceMgr.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<link rel="StyleSheet" href="${pageContext.request.contextPath}/css/table4jtheme/tabletree4j.css" type="text/css" />
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/table4j/Core4j.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/table4j/TableTree4j.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.1.1.min.js"></script>
	<script language="javascript">
	var msg = "${msg}";
	if(msg!=null && msg!="") {
		alert(msg);
		history.back();
	}
	</script>
  </head>
  
  <body>
   	<div id="worldcupgird" class="content" style="margin-top:5px;float:left;width:81%;margin-left:1%">
   		<table>
  			<tr>
   				<td>路灯编号</td>
   				<td><input type="text" readonly="readonly" value="${light.lightNum}" /></td>
   			</tr>
   			<tr>
   				<td>区名称</td>
   				<td><input type="text" readonly="readonly" value="${light.addressName}" /></td>
   			</tr>
   			<tr>
   				<td>型号</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.lightType}" /></td>
   			</tr>
   			<tr>
   				<td>序列号</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.serialNum}" /></td>
   			</tr>
   			<tr>
   				<td>生产时间</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.productTime}" /></td>
   			</tr>
   			<tr>
   				<td>控制模式</td>
   				<td>
   				<c:if test="${lightConfigBean.controlModel eq '11'}"><input type="text" readonly="readonly" value="光控开灯-光控关灯" /></c:if>
   				<c:if test="${lightConfigBean.controlModel eq '12'}"><input type="text" readonly="readonly" value="光控开灯-时控关灯" /></c:if>
   				<c:if test="${lightConfigBean.controlModel eq '21'}"><input type="text" readonly="readonly" value="时控开灯-光控关灯" /></c:if>
   				<c:if test="${lightConfigBean.controlModel eq '22'}"><input type="text" readonly="readonly" value="时控开灯-时控关灯" /></c:if>
   				</td>
   			</tr>
   			<tr>
   				<td>开灯电压</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.turnonVol}" /></td>
   			</tr>
   			<tr>
   				<td>开灯时间</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.turnonTime}" /></td>
   			</tr>
   			
   			<tr>
   				<td>关灯时间</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.shutdownTime}" /></td>
   			</tr>
   			<tr>
   				<td>工作模式</td>
   				<td>
   				<c:if test="${lightConfigBean.workModel eq '01'}"><input type="text" readonly="readonly" value="自动降功率" /></c:if>
   				<c:if test="${lightConfigBean.workModel eq '02'}"><input type="text" readonly="readonly" value="晨亮" /></c:if>
   				<c:if test="${lightConfigBean.workModel eq '03'}"><input type="text" readonly="readonly" value="节能+晨亮" /></c:if>
   				</td>
   			</tr>
   			<tr>
   				<td>峰值保护</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.topVol}" /></td>
   			</tr>
   			<tr>
   				<td>欠压保护</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.lowVol}" /></td>
   			</tr>
   			<tr>
   				<td>退出保护</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.exitVol}" /></td>
   			</tr>
   			<tr>
   				<td>降功率起始电压</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.lowStartVol}" /></td>
   			</tr>
   			<tr>
   				<td>降功率终止电压</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.lowEndVol}" /></td>
   			</tr>
   			<tr>
   				<td>负载最大电流</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.maxWorkCurrent}" /></td>
   			</tr>
   			<tr>
   				<td>1段时长</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.time1}" /></td>
   			</tr>
   			<tr>
   				<td>1段电流</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.workCurrent1}" /></td>
   			</tr>
   			<tr>
   				<td>2段时长</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.time2}" /></td>
   			</tr>
   			<tr>
   				<td>2段电流</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.workCurrent2}" /></td>
   			</tr>
   			<tr>
   				<td>3段时长</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.time3}" /></td>
   			</tr>
   			<tr>
   				<td>3段电流</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.workCurrent3}" /></td>
   			</tr>
   			<tr>
   				<td>4段时长</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.time4}" /></td>
   			</tr>
   			<tr>
   				<td>4段电流</td>
   				<td><input type="text" readonly="readonly" value="${lightConfigBean.workCurrent4}" /></td>
   			</tr>
   		</table>
   	</div>
  </body>
</html>
